<?php
	class phongbanbs
	{
		public $MaPhongBan 	= "";
		public $TenPhongBan = "";
		public $MaPhongBanCu 	= "";
		
		public function Them()
		{
			$db = new phongbandb();
			return $db->Them($this->MaPhongBan, 
							   $this->TenPhongBan);
		}
		
		public function CapNhat()
		{
			$db = new phongbandb();
			return $db->CapNhat($this->MaPhongBan, 
							    $this->TenPhongBan,
							    $this->MaPhongBanCu);
		}
		
		public function TonTaiTrongChucVu()
		{
			$db = new phongbandb();
			return $db->TonTaiTrongChucVu($this->MaPhongBan);
		}
	
		public function Xoa()
		{
			$db = new phongbandb();
			return $db->Xoa($this->MaPhongBan);
		}
		
		public function XoaTatCa()
		{
			$db = new phongbandb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new phongbandb();
			return $db->LayDanhSach($this->MaPhongBan,
									$this->TenPhongBan);
		}
	}
?>